﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:monitor_server_2_WPF="clr-namespace:monitor_server_2_WPF" 
             x:Class="monitor_server_2_WPF.DeviceListParamPanels.DeviceParamPanel" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="201">

    <UserControl.Resources>
        <ResourceDictionary Source="pack://application:,,,/Styles/CustomStylesDictionary.xaml" />
    </UserControl.Resources>

    <Grid>
        <StackPanel Margin="0,0,1,0">
            <Label x:Name="HeadLabel" Height="23" Content="Label" Foreground="White"/>
            <Separator Height="10" Margin="0,3,0,0"/>
            <Label x:Name="DeviceTitleLabel" Content="Title" Foreground="White"/>
            <TextBox Name="DeviceTitleBox" Height="23" TextWrapping="Wrap" TextChanged="DeviceTitleBox_OnTextChanged"/>
            <Label x:Name="IpLabel" Content="Ip" Foreground="White"/>
            <TextBox x:Name="IpBox" Height="23" TextWrapping="Wrap" Text="Ip"/>
            <StackPanel Orientation="Horizontal">
                <Label x:Name="StatusLabel" Content="Label" VerticalAlignment="Center" Foreground="White"/>
                <CheckBox Margin="5,2,0,0" x:Name="StatusBox" VerticalAlignment="Center" Foreground="White" IsThreeState="False" Checked="StatusBox_OnChecked" Unchecked="StatusBox_OnUnchecked"/>
            </StackPanel>
            <Grid Margin="0,10,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Button x:Name="AcceptButton" Content="Accept" Grid.Column="0" HorizontalAlignment="Center" Click="AcceptButton_OnClick"/>
                <Button x:Name="DeleteButton" Content="Delete" Grid.Column="1" HorizontalAlignment="Center" Click="DeleteButton_OnClick"/>
            </Grid>
            
            <monitor_server_2_WPF:FloatingInfos x:Name="Infos" Margin="0,3,0,0"/>

        </StackPanel>
    </Grid>
</UserControl>
